summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-02-13 19:35:56 +0100
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:30 +0200
commit58531ecf4f52b6fb1983febcb457bfe11d83d6b7 (patch)
treefdbcc564e41ae09687ebcf80b66e8bf601cdbf84
parentandroid: frontend: Implement game grid view. (#9) (diff)
downloadyuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.tar
yuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.tar.gz
yuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.tar.bz2
yuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.tar.lz
yuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.tar.xz
yuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.tar.zst
yuzu-58531ecf4f52b6fb1983febcb457bfe11d83d6b7.zip
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.java11
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.java7
2 files changed, 9 insertions, 9 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.java
index 7a1ddd38e..e4619d253 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.java
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/NativeLibrary.java
@@ -266,11 +266,11 @@ public final class NativeLibrary {
coreErrorAlertLock.notify();
}
}).setOnDismissListener(dialog -> {
- coreErrorAlertResult = true;
- synchronized (coreErrorAlertLock) {
- coreErrorAlertLock.notify();
- }
- }).create();
+ coreErrorAlertResult = true;
+ synchronized (coreErrorAlertLock) {
+ coreErrorAlertLock.notify();
+ }
+ }).create();
}
}
@@ -287,6 +287,7 @@ public final class NativeLibrary {
/**
* Handles a core error.
+ *
* @return true: continue; false: abort
*/
public static boolean OnCoreError(CoreError error, String details) {
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.java b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.java
index 875719311..6919562f3 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.java
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/overlay/InputOverlayDrawableJoystick.java
@@ -143,12 +143,11 @@ public final class InputOverlayDrawableJoystick {
// Clamp the circle pad input to a circle
final float angle = (float) Math.atan2(AxisY, AxisX);
float radius = (float) Math.sqrt(AxisX * AxisX + AxisY * AxisY);
- if(radius > 1.0f)
- {
+ if (radius > 1.0f) {
radius = 1.0f;
}
- axises[0] = ((float)Math.cos(angle) * radius);
- axises[1] = ((float)Math.sin(angle) * radius);
+ axises[0] = ((float) Math.cos(angle) * radius);
+ axises[1] = ((float) Math.sin(angle) * radius);
SetInnerBounds();
}
}